* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background: url('./public/assets/bg.png') no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
    border: 2px solid #4da6ff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(77, 166, 255, 0.4);
}

.music-toggle:hover {
    border-color: #00d9ff;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
    transform: scale(1.1);
}

.music-toggle svg {
    width: 24px;
    height: 24px;
    color: #4da6ff;
    transition: all 0.3s ease;
}

.music-toggle:hover svg {
    color: #00d9ff;
}

.music-toggle .hidden {
    display: none;
}

.music-toggle.muted .music-icon {
    display: none;
}

.music-toggle.muted .mute-icon {
    display: block;
}

/* Snow Animation */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #a8d8ea, 0 0 10px #a8d8ea;
    animation: fall linear infinite;
    opacity: 0.8;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Main Container */
.main-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    gap: 20px;
}

/* New Logo Styling */
.new-logo-container {
    animation: logoFadeIn 1.5s ease-out, logoFloat 3s ease-in-out infinite 1.5s;
    position: relative;
    padding: 20px;
}

.logo {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(100, 200, 255, 0.6)) 
            drop-shadow(0 0 50px rgba(100, 200, 255, 0.3))
            brightness(1.1)
            contrast(1.1);
    animation: logoPulse 2.5s ease-in-out infinite 1.5s;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 25px rgba(100, 200, 255, 0.6)) 
                drop-shadow(0 0 50px rgba(100, 200, 255, 0.3))
                brightness(1.1)
                contrast(1.1);
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(100, 200, 255, 0.8)) 
                drop-shadow(0 0 70px rgba(100, 200, 255, 0.5))
                brightness(1.15)
                contrast(1.15);
    }
}

/* Image-Based Buttons Container */
.image-buttons-container {
    display: flex;
    gap: 30px;
    z-index: 20;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    animation: fadeInUp 1.5s ease-out 0.6s backwards;
    margin-top: -20px;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Button Styling */
.image-button {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.image-button:hover {
    transform: translateY(-10px) scale(1.05);
}

.button-frame {
    width: 220px;
    height: 320px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0a1628 100%);
    border: 4px solid #4da6ff;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(77, 166, 255, 0.4),
        0 0 40px rgba(77, 166, 255, 0.2),
        inset 0 2px 0 rgba(100, 200, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    transition: all 0.3s ease;
}

.image-button:hover .button-frame {
    border-color: #00d9ff;
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.6),
        0 0 60px rgba(0, 217, 255, 0.4),
        inset 0 2px 0 rgba(0, 217, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #1a2d4a 0%, #2a4d6a 50%, #1a2d4a 100%);
}

/* Corner Decorations */
.button-frame::before,
.button-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #4da6ff;
    z-index: 2;
}

.button-frame::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.button-frame::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

.image-button:hover .button-frame::before,
.image-button:hover .button-frame::after {
    border-color: #00d9ff;
}

/* Christmas Ornaments */
.ornament {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #4da6ff);
    box-shadow: 
        0 0 10px rgba(77, 166, 255, 0.6),
        inset -2px -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5);
    z-index: 3;
    animation: ornamentSway 3s ease-in-out infinite;
}

.ornament::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

.ornament-tl {
    top: -10px;
    left: -10px;
    animation-delay: 0s;
}

.ornament-tr {
    top: -10px;
    right: -10px;
    animation-delay: 0.5s;
}

.ornament-bl {
    bottom: -10px;
    left: -10px;
    animation-delay: 1s;
}

.ornament-br {
    bottom: -10px;
    right: -10px;
    animation-delay: 1.5s;
}

@keyframes ornamentSway {
    0%, 100% {
        transform: rotate(-5deg) scale(1);
    }
    50% {
        transform: rotate(5deg) scale(1.1);
    }
}

.image-button:hover .ornament {
    animation: ornamentTwinkle 0.5s ease-in-out infinite, ornamentSway 3s ease-in-out infinite;
}

@keyframes ornamentTwinkle {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(77, 166, 255, 0.6),
            inset -2px -2px 4px rgba(0, 0, 0, 0.3),
            inset 2px 2px 4px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(0, 217, 255, 1),
            0 0 30px rgba(0, 217, 255, 0.8),
            inset -2px -2px 4px rgba(0, 0, 0, 0.3),
            inset 2px 2px 4px rgba(255, 255, 255, 0.5);
    }
}

/* Button Character Image */
.button-character-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    position: relative;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.image-button:hover .button-character-image {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(0, 217, 255, 0.1);
    filter: brightness(1.1);
}

/* Button Label */
.button-label {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 900;
    color: #4da6ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 
        0 0 10px rgba(77, 166, 255, 0.8),
        0 0 20px rgba(77, 166, 255, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 10px 5px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.image-button:hover .button-label {
    color: #00d9ff;
    text-shadow: 
        0 0 15px rgba(0, 217, 255, 1),
        0 0 30px rgba(0, 217, 255, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .logo {
        width: 300px;
    }

    .image-buttons-container {
        gap: 25px;
        margin-top: -150px;
    }

    .button-frame {
        width: 200px;
        height: 300px;
    }

    .button-character-image {
        height: 200px;
    }

    .button-label {
        font-size: 18px;
    }

    .ornament {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 280px;
    }

    .main-container {
        gap: 15px;
    }

    .image-buttons-container {
        flex-direction: column;
        gap: 20px;
        width: 90%;
        max-width: 350px;
        margin-top: -10px;
    }

    .button-frame {
        width: 100%;
        max-width: 280px;
        height: 350px;
        margin: 0 auto;
    }

    .button-character-image {
        height: 240px;
    }

    .button-label {
        font-size: 20px;
    }

    .music-toggle {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }

    .music-toggle svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 220px;
    }

    .button-frame {
        width: 100%;
        max-width: 260px;
        height: 330px;
    }

    .button-character-image {
        height: 220px;
    }

    .button-label {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .ornament {
        width: 14px;
        height: 14px;
    }

    .music-toggle {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .music-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a2332;
}

::-webkit-scrollbar-thumb {
    background: #4da6ff;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00d9ff;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #4da6ff #1a2332;
}